

# ####################
#  Critter Utilities - All
# ####################


# Auto-Repair / Hull Regeneration

utility_component_template = {
	key = "REPAIR1"
	size = small
	icon = "GFX_ship_part_auto_repair"
	icon_frame = 1
	power = 0
	cost = 30
	modifier = {
		ship_hull_mult = 0.10 # Regenerates 10% ship-health per month
	}
	prerequisites = { tech_New_tech }
	component_set = "REPAIR"
	military_power = 1
	should_ai_use = no

}

utility_component_template = {
	key = "REPAIR2"
	size = aux
	icon = "GFX_ship_part_auto_repair"
	icon_frame = 1
	power = 0
	cost = 40

	modifier = {
		ship_hull_mult = 0.20 # Regenerates 20% ship-health per month
	}
	
	prerequisites = { tech_New_tech }
	component_set = "REPAIR"
	military_power = 1
	should_ai_use = no

}

utility_component_template = {
	key = "REPAIR3"
	size = large
	icon = "GFX_ship_part_auto_repair"
	icon_frame = 1
	power = 0
	cost = 50

	modifier = {
		ship_hull_mult = 0.40 # Regenerates 40% ship-health per month
	}
	
	prerequisites = { tech_New_tech }
	component_set = "REPAIR"
	military_power = 1
	should_ai_use = no

}

utility_component_template = {
	key = "ENIGMATIC_DECODER1"
	size = aux
	icon = "GFX_ship_part_enigmatic_decoder"
	icon_frame = 1
	power = -20
	cost = 20
        prerequisites = { "tech_New_tech" }
	component_set = "ENIGMATIC_DECODER1"

	ship_modifier = {
		ship_tracking_add = 30
		ship_accuracy_add = 30
	}
	
	ai_weight = {
		weight = 10
		modifier = {
			factor = 2
			has_country_flag = ai_flag_aggressive_personality
		}
	}
}

utility_component_template = {
	key = "ENIGMATIC_ENCODER1"
	size = aux
	icon = "GFX_ship_part_enigmatic_encoder"
	icon_frame = 1
	power = -20
	cost = 20
        prerequisites = { "tech_New_tech" }
	component_set = "ENIGMATIC_ENCODER1"

	ship_modifier = {
		ship_evasion_add = 30
	}
	
	ai_weight = {
		weight = 10
		modifier = {
			factor = 2
			has_country_flag = ai_flag_aggressive_personality
		}
	}
}